/**
 * @description 显示按钮 + 点击事件通过eventBus传回列表页
 */


import { Button } from "antd"

function ButtonRender({ title, record, columnName, handleTableEvent }) {


  // 通过eventBus传回列表页
  let handleClick = () => {
    handleTableEvent({
      renderName: 'ButtonRender',
      columnName,
      record
    })
  }
  return (
    <Button size='small' onClick={handleClick}>{title}</Button>
  )
}
export default ButtonRender